<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script
	src="${pageContext.request.contextPath}/resources/js/jquery-1.9.1.min.js"></script>
<script
	src="${pageContext.request.contextPath}/resources/js/bootstrap.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/resources/js/warehouse_manage.js"></script>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/resources/css/main_font.css" />
<title>四川芝麻开门管理系统</title>
</head>
<body>
	<div class="container">
		<c:set var="housekeeper" scope="session" value="${housekeeper}" />
		<c:if test="${housekeeper==null}">
			<span><a
				href="${pageContext.request.contextPath}/pagejump/toLogin">您未登陆哦，请登陆！</a></span>
		</c:if>
		<c:if test="${housekeeper!=null}">
			<span>${sessionScope.housekeeper.name},欢迎您！<a
				href="${pageContext.request.contextPath}/pagejump/toLogin">退出登陆</a></span>
		</c:if>
	</div>
	<div class="container">
		<span><a
			href="${pageContext.request.contextPath}/pagejump/toIndex">主页</a>><a
			href="${pageContext.request.contextPath}/admin/warehouse">库房管理</a>><a
			href="${pageContext.request.contextPath}/admin/warehouse_export">出库管理</a>>产品出库登记</span>
	</div>
	<div id="Return">
		<c:set var="response" scope="request" value="${serverResponse}" />
		<c:if test="${response.status==1}">
			<font color='red'>${response.msg}</font>
		</c:if>
	</div>
	<div class="container">
		<div style="width: 300px;">
			<form
				action="${pageContext.request.contextPath}/warehouse_manage/export_register"
				id="formExport">
				<div class="form-group" id="timeDiv">
					<label for="time">出库时间</label> <input type="date"
						class="form-control" id="time" placeholder="time" name="time"
						onclick="warehouse_address_select()">
				</div>
				<div class="form-group" id="warehouse_addressDiv">
					<label for="warehouse_address">库房地点</label> <input type="text"
						class="form-control" id="warehouse_address" placeholder="address"
						name="warehouse_address" list="warehouse_address_list"
						onchange="export_product_select()" autocomplete="off">
					<datalist id="warehouse_address_list">
					</datalist>
				</div>
				<div class="form-group" id="product_nameDiv">
					<label for="product_name">产品名称</label> 
					<select id="product_name" name="product_name" onchange="product_model_select()">
					<!-- onchange="product_model_select()" -->
						<!-- <option value="0">该仓库没有产品，请选择正确的仓库</option> -->
					</select>
				</div>
				<div class="form-group" id="product_modelDiv">
					<label for="product_model">产品编号</label>
					<select id="product_model" name="product_model">
						<!-- <option value="0">请选择正确的产品</option> -->
					</select>
				</div>
				<!-- <div class="form-group" id="specificationDiv">
					<label for="specification">规格</label> <input type="text"
						class="form-control" id="specification"
						placeholder="specification" name="specification">
				</div>
				<div class="form-group" id="unitDiv">
					<label for="unit">单位(例:个，箱)</label> <input type="text"
						class="form-control" id="unit" placeholder="unit" name="unit">
				</div> -->
				<div class="form-group" id="export_priceDiv">
					<label for="export_price">出库单价</label> <input type="text"
						class="form-control" id="export_price" placeholder="price"
						name="export_price" onkeyup="clearNoNum(this)" autocomplete="off">
				</div>
				<div class="form-group" id="quantityDiv">
					<label for="quantity">数量</label> <input type="text"
						class="form-control" id="quantity" placeholder="number"
						name="quantity" onkeyup="value=value.replace(/[^\d]/g,'')" autocomplete="off">
				</div>
				<!-- <div class="form-group" id="tota_moneyDiv">
					<label for="tota_money">总金额</label> <input type="text"
						class="form-control" id="tota_money" placeholder="tota_money"
						name="tota_money" onkeyup="clearNoNum(this)"
						list="tota_money_list">
					<datalist id="tota_money_list">
					</datalist>
				</div> -->
				<div class="form-group" id="export_warehouse_manDiv">
					<label for="export_warehouse_man">出库人</label> <input type="text"
						class="form-control" id="export_warehouse_man" placeholder="name"
						name="export_warehouse_man" list="export_warehouse_man_list" autocomplete="off">
					<datalist id="export_warehouse_man_list">
						<option>${sessionScope.housekeeper.name}</option>
					</datalist>
				</div>
				<div class="form-group" id="fetch_warehouse_manDiv">
					<label for="fetch_warehouse_man">取货人</label> <input type="text"
						class="form-control" id="fetch_warehouse_man" placeholder="name"
						name="fetch_warehouse_man" autocomplete="off">
				</div>
				<div class="form-group">
					<label for="remarks">备注</label>
					<textarea rows="3" cols="25" warp="soft"
						style="border: solid 1px #a8acb2;" id="remarks" name="remarks"></textarea>
				</div>
				<div>
					<button type="button" class="btn btn-success"
						onclick="exportVerify()">提交</button>
				</div>
			</form>
		</div>
	</div>
</body>
</html>